package org.zhang.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.zhang.shortlink.admin.dto.req.UserLoginDTO;
import org.zhang.shortlink.admin.dto.req.UserRegisterDTO;
import org.zhang.shortlink.admin.dto.req.UserUpdateDTO;
import org.zhang.shortlink.admin.dto.resp.SysUserVo;
import org.zhang.shortlink.admin.dao.entity.SysUser;

/**
* @author zhang
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2024-03-17 21:02:06
*/

public interface SysUserService extends IService<SysUser> {

    SysUserVo getUserByUsername(String username);

    Boolean hasUsername(String username);

    void register(UserRegisterDTO userRegisterDTO);

    void update(UserUpdateDTO userUpdateDTO);

    String login(UserLoginDTO userLoginDTO);

    Void logout(String username);
}
